import pyttsx3
import time

speaker = pyttsx3.init()

start_text = "来个自然数！否则揍死你！！！"
speaker.say(start_text)
speaker.runAndWait()

num = int(input(start_text))
for i in range(num):
    if i * i == num:
        result_text = "找到啦！你是完全平方数！哈哈哈！！！你是" + str(i) + "的平方。"
        print(result_text)
        speaker.say(result_text)
        speaker.runAndWait()
        break
    else:
        print(str(i) + "这个不是！")
    if i * i > num:
        result_text = "你不是完全平方数！呜呜呜呜！"
        print(result_text)
        speaker.say(result_text)
        break

end_text1 = "预备~~~"
end_text2 = "没有啦！"
print(end_text1 + end_text2)

speaker.say(end_text1)
speaker.runAndWait()

time.sleep(0.3)

speaker.say(end_text2)
speaker.runAndWait()
